toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

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