toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (edition != null) 'edition': edition!,
      if (fields != null) 'fields': fields!,
      if (name != null) 'name': name!,
      if (oneofs != null) 'oneofs': oneofs!,
      if (options != null) 'options': options!,
      if (sourceContext != null) 'sourceContext': sourceContext!,
      if (syntax != null) 'syntax': syntax!,
    };