MFInitiateSessionResponse.fromJson constructor

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

Implementation

MFInitiateSessionResponse.fromJson(Map<String, dynamic> json) {
  sessionId = json['SessionId'];
  countryCode = json['CountryCode'];
  if (json['CustomerTokens'] != null) {
    customerTokens = <CustomerTokens>[];
    json['CustomerTokens'].forEach((v) {
      customerTokens!.add(CustomerTokens.fromJson(v));
    });
  }
}