UserDetails.fromJson constructor

UserDetails.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory UserDetails.fromJson(Map<String, Object?> json) {
  return UserDetails(
    business: json[r'business'] != null
        ? UserDetailsBusiness.fromJson(
            json[r'business']! as Map<String, Object?>)
        : null,
    personal: json[r'personal'] != null
        ? UserDetailsPersonal.fromJson(
            json[r'personal']! as Map<String, Object?>)
        : null,
  );
}