toJson method

Map<String, dynamic> toJson()

Model as JSON map.

Implementation

Map<String, dynamic> toJson() =>
    <String, dynamic>{...extra ?? {}, ..._$ModelToJson(this)};