toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'data': data,
    'hash': hash,
    'secret': secret,
  }..removeWhere((_, v) => v == null);
}