Shape.fromJson constructor
Implementation
factory Shape.fromJson(Map<String, dynamic> json) => Shape(
json['type'] as String?,
(json['key'] as Map?)
?.let((e) => Descriptor.fromJson(e.cast<String, dynamic>())),
(json['value'] as Map?)
?.let((e) => Descriptor.fromJson(e.cast<String, dynamic>())),
(json['member'] as Map?)
?.let((e) => Descriptor.fromJson(e.cast<String, dynamic>())),
json['flattened'] as bool? ?? false,
(json['members'] as Map?)?.cast<String, Object>().map(
(k, e) => MapEntry(
k, Member.fromJson((e as Map).cast<String, dynamic>())),
),
json['locationName'] as String?,
json['timestampFormat'] as String?,
);