Contact.fromJson constructor

Contact.fromJson(
  1. Map<String, Object?> json
)

Implementation

Contact.fromJson(Map<String, Object?> json)
    : emailAddress =
          ((v) => v != null ? v as String : null)(json['email_address']),
      matrixId = ((v) => v != null ? v as String : null)(json['matrix_id']),
      role = Role.values.fromString(json['role'] as String)!;