toMap method
序列化(形如 {common:{}, android:{}, ios:{}, harmony:{}})。
Implementation
Map<String, Object?> toMap() => <String, Object?>{
'common': <String, Object?>{
'intervalMs': interval.inMilliseconds,
'coordinateType': coordinateType.wireName,
'requestLevel': requestLevel.wireName,
'allowDirectionSensor': allowDirectionSensor,
},
'android': _android.toMap(),
'ios': _ios.toMap(),
'harmony': _harmony.toMap(),
};