toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "fields": fields.map((e) => e.toJson()).toList(),
    }.clearNulls();