toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  if (this.pin != null) {
    json[r'pin'] = this.pin;
  } else {
    json[r'pin'] = null;
  }
  if (this.instructions != null) {
    json[r'instructions'] = this.instructions;
  } else {
    json[r'instructions'] = null;
  }
  return json;
}