toJson method

Map<String, dynamic> toJson ()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['is_active'] = this.isActive;
  data['last4_digits'] = this.last4Digits;
  data['resource'] = this.resource;
  data['created_at'] = this.createdAt;
  data['is_verified'] = this.isVerified;
  data['uri'] = this.uri;
  data['expiration_year'] = this.expirationYear;
  data['first4_digits'] = this.first4Digits;
  data['updated_at'] = this.updatedAt;
  data['is_valid'] = this.isValid;
  data['card_brand'] = this.cardBrand;
  data['expiration_month'] = this.expirationMonth;
  data['fingerprint'] = this.fingerprint;
  data['id'] = this.id;
  if (this.verificationChecklist != null) {
    data['verification_checklist'] = this.verificationChecklist.toJson();
  }
  data['holder_name'] = this.holderName;
  data['customer'] = this.customer;
  return data;
}