toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (defaultValue != null) 'defaultValue': defaultValue!,
      if (jsonName != null) 'jsonName': jsonName!,
      if (label != null) 'label': label!,
      if (name != null) 'name': name!,
      if (number != null) 'number': number!,
      if (oneofIndex != null) 'oneofIndex': oneofIndex!,
      if (proto3Optional != null) 'proto3Optional': proto3Optional!,
      if (type != null) 'type': type!,
      if (typeName != null) 'typeName': typeName!,
    };