CreateContextRequest.fromJson constructor
CreateContextRequest.fromJson(
- Object? j
Implementation
factory CreateContextRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return CreateContextRequest(
parent: switch (json['parent']) {
null => '',
Object $1 => decodeString($1),
},
context: switch (json['context']) {
null => null,
Object $1 => Context.fromJson($1),
},
contextId: switch (json['contextId']) {
null => '',
Object $1 => decodeString($1),
},
);
}