toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  if (this.freeUntil != null) {
    json[r'freeUntil'] = this.freeUntil!.toUtc().toIso8601String();
  } else {
    json[r'freeUntil'] = null;
  }
    json[r'schedule'] = this.schedule;
  if (this.fee != null) {
    json[r'fee'] = this.fee;
  } else {
    json[r'fee'] = null;
  }
  return json;
}