toJson method

Map<String, dynamic> toJson()

Returns JSON-serializable representation of this operation.

Implementation

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