Partner constructor

const Partner({
  1. required int id,
  2. required String name,
  3. required String email,
  4. required bool active,
  5. @JsonKey(name: 'im_status') required String imStatus,
  6. @JsonKey(name: 'is_internal_user', defaultValue: false) required bool isInternalUser,
  7. @JsonKey(name: 'user_id') int? userId,
  8. @JsonKey(name: 'display_name') String? displayName,
})

Implementation

const factory Partner({
  required int id,
  required String name,
  required String email,
  required bool active,
  @JsonKey(name: 'im_status') required String imStatus,
  @JsonKey(name: 'is_internal_user', defaultValue: false)
  required bool isInternalUser,
  @JsonKey(name: 'user_id') int? userId,
  @JsonKey(name: 'display_name') String? displayName,
}) = _Partner;