Proto2FieldDescriptorProto.fromJson constructor

Proto2FieldDescriptorProto.fromJson(
  1. Map json_
)

Implementation

Proto2FieldDescriptorProto.fromJson(core.Map json_)
    : this(
        defaultValue: json_.containsKey('defaultValue')
            ? json_['defaultValue'] as core.String
            : null,
        jsonName: json_.containsKey('jsonName')
            ? json_['jsonName'] as core.String
            : null,
        label:
            json_.containsKey('label') ? json_['label'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        number:
            json_.containsKey('number') ? json_['number'] as core.int : null,
        oneofIndex: json_.containsKey('oneofIndex')
            ? json_['oneofIndex'] as core.int
            : null,
        proto3Optional: json_.containsKey('proto3Optional')
            ? json_['proto3Optional'] as core.bool
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        typeName: json_.containsKey('typeName')
            ? json_['typeName'] as core.String
            : null,
      );