toJson method

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

Converts this class object into a JSON value.

Implementation

@override
Map<String, dynamic> toJson() => {
      "contentType": contentType,
      ...additionalFields,
    };