toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (customConstraint != null) 'customConstraint': customConstraint!,
      if (error != null) 'error': error!,
      if (name != null) 'name': name!,
      if (resource != null) 'resource': resource!,
    };