toJson method

String toJson()

Implementation

String toJson() {
  return jsonEncode({'id': id, 'key': key});
}