toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (editionDeprecated != null) 'editionDeprecated': editionDeprecated!,
      if (enumType != null) 'enumType': enumType!,
      if (messageType != null) 'messageType': messageType!,
      if (name != null) 'name': name!,
      if (package != null) 'package': package!,
      if (syntax != null) 'syntax': syntax!,
    };