toJson method

Map<String, dynamic> toJson()

Converts this WidevineConfig into a JSON friendly Map.

Implementation

Map<String, dynamic> toJson() {
  final jsonData = _$WidevineConfigToJson(this);

  jsonData['prepareMessage'] = prepareMessage != null;
  jsonData['prepareLicense'] = prepareLicense != null;

  return jsonData;
}