RefundDestinationDetailsCard.fromJson constructor

RefundDestinationDetailsCard.fromJson(
  1. Object? json
)

Implementation

factory RefundDestinationDetailsCard.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return RefundDestinationDetailsCard(
    reference: map['reference'] == null ? null : (map['reference'] as String),
    referenceStatus: map['reference_status'] == null
        ? null
        : (map['reference_status'] as String),
    referenceType: map['reference_type'] == null
        ? null
        : (map['reference_type'] as String),
    type: RefundDestinationDetailsCardType.fromJson(map['type']),
  );
}