fromJson static method

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

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

Implementation

static UserProfile? fromJson(Map<String, dynamic>? json) => json == null
  ? null
  : UserProfile(
      userId: json[r'user_id'],
      email: json[r'email'],
      name: json[r'name'],
      firstNameLen: json[r'first_name_len'],
      authenticatedTill: json[r'authenticated_till'],
  );