Map<String, dynamic> toJson() => { "type": type, "properties": properties.toJson(), "required": List<dynamic>.from(required.map((x) => x)), };