toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'service'] = this.service;
  json[r'status'] = this.status;
  if (this.minAvailableLocalDate != null) {
    json[r'minAvailableLocalDate'] =
        this.minAvailableLocalDate!.toUtc().toIso8601String();
  } else {
    json[r'minAvailableLocalDate'] = null;
  }
  if (this.maxAvailableLocalDate != null) {
    json[r'maxAvailableLocalDate'] =
        this.maxAvailableLocalDate!.toUtc().toIso8601String();
  } else {
    json[r'maxAvailableLocalDate'] = null;
  }
  return json;
}