BackendServiceHttpCookie.fromJson constructor
BackendServiceHttpCookie.fromJson(
- Object? j
Implementation
factory BackendServiceHttpCookie.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return BackendServiceHttpCookie(
name: switch (json['name']) {
null => null,
Object $1 => decodeString($1),
},
path: switch (json['path']) {
null => null,
Object $1 => decodeString($1),
},
ttl: switch (json['ttl']) {
null => null,
Object $1 => Duration.fromJson($1),
},
);
}