fromJson static method

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

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

Implementation

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