Creates user from a map (decoded JSON).
factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);