Community constructor

const Community({
  1. @JsonKey.new(name: 'id') required int id,
  2. @JsonKey.new(name: 'name') required String name,
})

Creates a new Community object.

Implementation

const factory Community({
  /// Unique identifier for this community. This number may have more than 32
  /// significant bits and some programming languages may have
  /// difficulty/silent defects in interpreting it. But it has at most 52
  /// significant bits, so a signed 64-bit integer or double-precision float
  /// type are safe for storing this identifier.
  @JsonKey(name: 'id') required int id,

  /// Name of the community
  @JsonKey(name: 'name') required String name,
}) = _Community;