toMap method

  1. @override
Map<String, dynamic> toMap()

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(),
      'ohosPermissions': ohosPermissions,
    };