toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.amendmentRequestId != null) {
    json[r'amendmentRequestId'] = this.amendmentRequestId;
  } else {
    json[r'amendmentRequestId'] = null;
  }
  if (this.processedAt != null) {
    json[r'processedAt'] = this.processedAt!.toUtc().toIso8601String();
  } else {
    json[r'processedAt'] = null;
  }
  if (this.expiresAt != null) {
    json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String();
  } else {
    json[r'expiresAt'] = null;
  }
    json[r'options'] = this.options;
  return json;
}