UserDTO.fromJson constructor

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

Implementation

factory UserDTO.fromJson(Map<String, Object?> json) {
  return UserDTO(
    links: json[r'_links'] != null
        ? UserLinkDTO.fromJson(json[r'_links']! as Map<String, Object?>)
        : null,
    accountId: json[r'accountId'] as String?,
    active: json[r'active'] as bool? ?? false,
    displayName: json[r'displayName'] as String?,
    emailAddress: json[r'emailAddress'] as String?,
    key: json[r'key'] as String?,
    name: json[r'name'] as String?,
    timeZone: json[r'timeZone'] as String?,
  );
}