toJson method

Map<String, Object> toJson()
inherited

Implementation

Map<String, Object> toJson() {
    final edited = toMap().entries.map((e) {
        final value = e.value;
        if (value is DesignPatternToJsonSignature) return MapEntry(e.key, value.toJson());
        return MapEntry(e.key, value.toString());
    });
    return Map.fromEntries(edited);
}