fromJson static method

LoginResultDto? fromJson(
  1. dynamic value
)

Returns a new LoginResultDto instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static LoginResultDto? fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return LoginResultDto(
      organizationUrl: mapValueOfType<String>(json, r'organizationUrl'),
      token: mapValueOfType<String>(json, r'token'),
    );
  }
  return null;
}