DisputeDuplicate.fromJson constructor

DisputeDuplicate.fromJson(
  1. Object? json
)

Implementation

factory DisputeDuplicate.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return DisputeDuplicate(
    additionalDocumentation: map['additional_documentation'] == null
        ? null
        : (map['additional_documentation'] as String),
    cardStatement: map['card_statement'] == null
        ? null
        : (map['card_statement'] as String),
    cashReceipt:
        map['cash_receipt'] == null ? null : (map['cash_receipt'] as String),
    checkImage:
        map['check_image'] == null ? null : (map['check_image'] as String),
    explanation:
        map['explanation'] == null ? null : (map['explanation'] as String),
    originalTransaction: map['original_transaction'] == null
        ? null
        : (map['original_transaction'] as String),
  );
}