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 = <String, dynamic>{
    "in": in_,
    "alg": alg,
    "format": format,
    ...super.toJson(),
  };

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

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

  return result;
}