Proto2DescriptorProto.fromJson constructor
Proto2DescriptorProto.fromJson(
- Map json_
Implementation
Proto2DescriptorProto.fromJson(core.Map json_)
: this(
enumType: (json_['enumType'] as core.List?)
?.map((value) => Proto2EnumDescriptorProto.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList(),
field: (json_['field'] as core.List?)
?.map((value) => Proto2FieldDescriptorProto.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList(),
name: json_['name'] as core.String?,
nestedType: (json_['nestedType'] as core.List?)
?.map((value) => Proto2DescriptorProto.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList(),
oneofDecl: (json_['oneofDecl'] as core.List?)
?.map((value) => Proto2OneofDescriptorProto.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList(),
);