toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.cardNumber != null) {
    json[r'cardNumber'] = this.cardNumber;
  } else {
    json[r'cardNumber'] = null;
  }
  if (this.pinCode != null) {
    json[r'pinCode'] = this.pinCode;
  } else {
    json[r'pinCode'] = null;
  }
  if (this.instructions != null) {
    json[r'instructions'] = this.instructions;
  } else {
    json[r'instructions'] = null;
  }
  return json;
}