Example.fromJson constructor
Example.fromJson(
- Object? j
Implementation
factory Example.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Example(
storedContentsExample: switch (json['storedContentsExample']) {
null => null,
Object $1 => StoredContentsExample.fromJson($1),
},
displayName: switch (json['displayName']) {
null => '',
Object $1 => decodeString($1),
},
exampleId: switch (json['exampleId']) {
null => '',
Object $1 => decodeString($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
);
}