errorToJson function

String errorToJson(
  1. Error data
)

Implementation

String errorToJson(Error data) => json.encode(data.toJson());