fromMap static method

LoginRequest? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible LoginRequest instance from a Map value.

Implementation

static LoginRequest? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = LoginRequest(
    account: map['account'],
    args: map['args'],
    realm: map['realm'],
  );
  return instance;
}