toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (enumType != null) 'enumType': enumType!,
      if (field != null) 'field': field!,
      if (name != null) 'name': name!,
      if (nestedType != null) 'nestedType': nestedType!,
      if (oneofDecl != null) 'oneofDecl': oneofDecl!,
    };