fromJson static method
Returns a new CredentialsDto instance and imports its values from
value
if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static CredentialsDto? fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return CredentialsDto(
user: mapValueOfType<String>(json, r'user'),
password: mapValueOfType<String>(json, r'password'),
);
}
return null;
}