toJson method

Map<String, dynamic> toJson()

Implementation

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