Proto2FileDescriptorProto.fromJson constructor

Proto2FileDescriptorProto.fromJson(
  1. Map json_
)

Implementation

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