MyUserInfo constructor

  1. @JsonSerializable(fieldRename: FieldRename.snake)
const MyUserInfo({
  1. required LocalUserSettingsView localUserView,
  2. required List<CommunityFollowerView> follows,
  3. required List<CommunityModeratorView> moderates,
  4. required List<CommunityBlockView> communityBlocks,
  5. required List<PersonBlockView> personBlocks,
  6. required String instanceHost,
})

Implementation

@JsonSerializable(fieldRename: FieldRename.snake)
const factory MyUserInfo({
  required LocalUserSettingsView localUserView,
  required List<CommunityFollowerView> follows,
  required List<CommunityModeratorView> moderates,
  required List<CommunityBlockView> communityBlocks,
  required List<PersonBlockView> personBlocks,
  required String instanceHost,
}) = _MyUserInfo;