MitIdCompleted.fromJson constructor

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

Implementation

factory MitIdCompleted.fromJson(Map<String, dynamic> json) => MitIdCompleted(
      id: json['id'] as String,
      refId: json['refId'] as String?,
      ssn: json['ssn'] as String?,
      name: json['name'] as String,
      givenName: json['givenName'] as String,
      surname: json['surname'] as String,
      phone: json['phone'] as String?,
      email: json['email'] as String?,
      address: json['address'] as String?,
      birthDate: json['birthDate'] as String?,
      pid: json['pid'] as String?,
      bankId: json['bankId'] as String?,
      signResult: json['signResult'] == null
          ? null
          : MitIdSignResult.fromJson(
              json['signResult'] as Map<String, dynamic>),
      authenticatedAt: json['authenticatedAt'] as String?,
      signedAt: json['signedAt'] as String?,
    );