Cards.fromJson constructor

Cards.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Cards.fromJson(Map<String, dynamic> json) => Cards(
      id: json["id"] == null ? null : json["id"],
      authCode: json["auth_code"] == null ? null : json["auth_code"],
      primaryCard: json["primary_card"] == null ? null : json["primary_card"],
      status: json["status"] == null ? null : json["status"],
      cardOwnerName:
          json["card_owner_name"] == null ? null : json["card_owner_name"],
      cardOwnerEmail:
          json["card_owner_email"] == null ? null : json["card_owner_email"],
      cardOwnerPhone:
          json["card_owner_phone"] == null ? null : json["card_owner_phone"],
      metaDataJson: json["meta_data_json"] == null
          ? null
          : MetaDataJson.fromJson(json["meta_data_json"]),
      createdAt: json["created_at"] == null
          ? null
          : DateTime.parse(json["created_at"]),
    );