fromJson static method

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

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

Implementation

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