fromJson static method

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

Returns a new UserLoginRequest instance and imports its values from json if it's non-null, null if json is null.

Implementation

static UserLoginRequest? fromJson(Map<String, dynamic>? json) => json == null
  ? null
  : UserLoginRequest(
      username: json[r'username'],
      password: json[r'password'],
  );