TransAppSelectedInfo.fromMap constructor

TransAppSelectedInfo.fromMap(
  1. Map<String, dynamic> map
)

Generate an object from the map

Implementation

factory TransAppSelectedInfo.fromMap(Map<String, dynamic> map) {
  return TransAppSelectedInfo(
    aid: map['aid'] != null ? map['aid'] as String : null,
    brandId: map['brandId'] != null ? map['brandId'] as int : null,
    brandName: map['brandName'] != null ? map['brandName'] as String : null,
    cardAppLabel:
        map['cardAppLabel'] != null ? map['cardAppLabel'] as String : null,
    paymentBusinessModel: map['paymentBusinessModel'] != null
        ? map['paymentBusinessModel'] as String
        : null,
    transactionTypeInfo: map['transactionTypeInfo'] != null
        ? TransactionTypeInfo.fromMap(
            map['transactionTypeInfo'] as Map<String, dynamic>)
        : null,
  );
}