Category.fromJson constructor
Category.fromJson(
- Map json_
Implementation
Category.fromJson(core.Map json_)
: this(
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
moreHoursTypes: json_.containsKey('moreHoursTypes')
? (json_['moreHoursTypes'] as core.List)
.map((value) => MoreHoursType.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
serviceTypes: json_.containsKey('serviceTypes')
? (json_['serviceTypes'] as core.List)
.map((value) => ServiceType.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);