UserProfile.fromJson constructor
Implementation
factory UserProfile.fromJson(Map<String, dynamic> json) => UserProfile(
id: json['id'] as String,
email: json['email'] as String,
firstName: json['first_name'] as String?,
lastName: json['last_name'] as String?,
metadata: (json['metadata'] as Map?)?.cast<String, dynamic>() ?? {},
annotations: (json['annotations'] as Map?)?.cast<String, String>() ?? {},
);