Expr.fromJson constructor
Expr.fromJson(
- Object? j
Implementation
factory Expr.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Expr(
expression: switch (json['expression']) {
null => '',
Object $1 => decodeString($1),
},
title: switch (json['title']) {
null => '',
Object $1 => decodeString($1),
},
description: switch (json['description']) {
null => '',
Object $1 => decodeString($1),
},
location: switch (json['location']) {
null => '',
Object $1 => decodeString($1),
},
);
}