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>{
      'type': type.value,
      'mediaLocation': mediaLocation,
    };