toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts this class object into a JSON value.

Implementation

@override
Map<String, dynamic> toJson() {
  final result = super.toJson();

  if (identity != null) {
    result["identity"] = identity;
  }

  return result;
}