MonoEventData.fromJson constructor

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

Implementation

factory MonoEventData.fromJson(Map<String, dynamic> json) => MonoEventData(
      timestamp: json.getKey<int>('timestamp') ??
          DateTime.now().millisecondsSinceEpoch,
      reference: json.getKey<String>('reference'),
      authMethod: json.getKey<String>('authMethod'),
      errorMessage: json.getKey<String>('errorMessage'),
      errorType: json.getKey<String>('errorType'),
      mfaType: json.getKey<String>('mfaType'),
      pageName: json.getKey<String>('pageName'),
      prevAuthMethod: json.getKey<String>('prevAuthMethod'),
      selectedAccountsCount: json.getKey<int>('selectedAccountsCount'),
      institution: json['institution'] as Map<String, dynamic>?,
    );