toJson method

Map<String, dynamic> toJson()

Returns JSON-serializable representation of this operation.

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> json = {key: value};
  if (_attributes != null) json[Operation.attributesKey] = attributes;
  return json;
}