toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "cardProperties": cardProperties?.toJson(),
      "totalBytesReceived": totalBytesReceived,
      "totalBytesSent": totalBytesSent,
      "status": status.value,
      "extLeSupport": extLeSupport.value,
      "processTime": processTime,
      "accessControls": accessControls.map((e) => e.toJson()).toList(),
      "applications": applications.map((e) => e.toJson()).toList(),
      "securityObjects": securityObjects.map((e) => e.toJson()).toList(),
      "dataFields": dataFields.map((e) => e.toJson()).toList(),
      "dataGroups": dataGroups?.map((e) => e.value).toList(),
    }.clearNulls();