AccountResponseMessage.fromMap constructor

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

Implementation

factory AccountResponseMessage.fromMap(Map<String, dynamic> map) {
  return AccountResponseMessage(
    accountId: map['account_id'] ?? '',
    name: map['name'] ?? '',
    liveApiToken: map['live_api_token'],
    testApiToken: map['test_api_token'],
    userToken: map['user_token'] ?? '',
  );
}