Proto2FileDescriptorProto.fromJson constructor
Proto2FileDescriptorProto.fromJson(
- Map json_
Implementation
Proto2FileDescriptorProto.fromJson(core.Map json_)
: this(
editionDeprecated: json_.containsKey('editionDeprecated')
? json_['editionDeprecated'] as core.String
: null,
enumType: json_.containsKey('enumType')
? (json_['enumType'] as core.List)
.map((value) => Proto2EnumDescriptorProto.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
messageType: json_.containsKey('messageType')
? (json_['messageType'] as core.List)
.map((value) => Proto2DescriptorProto.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
package: json_.containsKey('package')
? json_['package'] as core.String
: null,
syntax: json_.containsKey('syntax')
? json_['syntax'] as core.String
: null,
);