Study.fromJson constructor
Study.fromJson(
- Object? j
Implementation
factory Study.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Study(
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
displayName: switch (json['displayName']) {
null => '',
Object $1 => decodeString($1),
},
studySpec: switch (json['studySpec']) {
null => null,
Object $1 => StudySpec.fromJson($1),
},
state: switch (json['state']) {
null => Study_State.$default,
Object $1 => Study_State.fromJson($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
inactiveReason: switch (json['inactiveReason']) {
null => '',
Object $1 => decodeString($1),
},
);
}