toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (state != null) {
    _json[r'state'] = state;
  }
  if (reason != null) {
    _json[r'reason'] = reason;
  }
  return _json;
}