toJson method

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

Serializes this as a JSON object.

Implementation

@override
Map<String, Object?> toJson() => {
      'value': switch (value) {
        final AWSSerializable serializable => serializable.toJson(),
        _ => value.toString(),
      },
    };