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