Proto2EnumDescriptorProto.fromJson constructor

Proto2EnumDescriptorProto.fromJson(
  1. Map json_
)

Implementation

Proto2EnumDescriptorProto.fromJson(core.Map json_)
    : this(
        name: json_['name'] as core.String?,
        value: (json_['value'] as core.List?)
            ?.map((value) => Proto2EnumValueDescriptorProto.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
      );