GetModLog constructor

  1. @JsonSerializable.new(includeIfNull: false)
const GetModLog({
  1. @JsonKey.new(name: 'mod_person_id') int? modPersonId,
  2. @JsonKey.new(name: 'community_id') int? communityId,
  3. int? page,
  4. int? limit,
  5. @JsonKey.new(name: 'type_') ModLogType? type,
  6. @JsonKey.new(name: 'other_person_id') int? otherPersonId,
  7. @JsonKey.new(name: 'post_id') int? postId,
  8. @JsonKey.new(name: 'comment_id') int? commentId,
  9. String? auth,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory GetModLog({
  @JsonKey(name: 'mod_person_id') int? modPersonId,
  @JsonKey(name: 'community_id') int? communityId,
  int? page,
  int? limit,
  @JsonKey(name: 'type_') ModLogType? type,
  @JsonKey(name: 'other_person_id') int? otherPersonId,
  @JsonKey(name: 'post_id') int? postId,
  @JsonKey(name: 'comment_id') int? commentId,
  String? auth,
}) = _GetModLog;