toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.dateCreated != null) {
    json[r'date_created'] = this.dateCreated!.toUtc().toIso8601String();
  } else {
    json[r'date_created'] = null;
  }
  if (this.lastUpdated != null) {
    json[r'last_updated'] = this.lastUpdated!.toUtc().toIso8601String();
  } else {
    json[r'last_updated'] = null;
  }
  if (this.engineId != null) {
    json[r'engine_id'] = this.engineId;
  } else {
    json[r'engine_id'] = null;
  }
    json[r'provider_id'] = this.providerId;
    json[r'service_name'] = this.serviceName;
    json[r'engine_type'] = this.engineType;
  if (this.integrationComplete != null) {
    json[r'integration_complete'] = this.integrationComplete;
  } else {
    json[r'integration_complete'] = null;
  }
  if (this.testFuncComplete != null) {
    json[r'test_func_complete'] = this.testFuncComplete;
  } else {
    json[r'test_func_complete'] = null;
  }
  return json;
}