toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
'displayName': displayName,
if (studySpec != null) 'studySpec': studySpec!.toJson(),
if (state.isNotDefault) 'state': state.toJson(),
if (createTime != null) 'createTime': createTime!.toJson(),
if (inactiveReason.isNotDefault) 'inactiveReason': inactiveReason,
};