LabelField.fromJson constructor
LabelField.fromJson(
- Map json_
Implementation
LabelField.fromJson(core.Map json_)
: this(
dateString: json_.containsKey('dateString')
? (json_['dateString'] as core.List)
.map((value) => core.DateTime.parse(value as core.String))
.toList()
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
integer: json_.containsKey('integer')
? (json_['integer'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
selection: json_.containsKey('selection')
? (json_['selection'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
text: json_.containsKey('text')
? (json_['text'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
user: json_.containsKey('user')
? (json_['user'] as core.List)
.map((value) => User.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
valueType: json_.containsKey('valueType')
? json_['valueType'] as core.String
: null,
);