toMap method
Convert current object to a map.
Usually for transfer to MethodChannel.
Implementation
@override
Map<String, dynamic> toMap() => <String, dynamic>{
'iosAccessLevel': iosAccessLevel.index + 1,
'androidPermission': androidPermission.toMap(),
};