Partner constructor
const
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,
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;