StringSchema.toMCP constructor
Implementation
factory StringSchema.toMCP(Map<String, Object?> map) {
return StringSchema(
minLength: map['minLength'] as int?,
maxLength: map['maxLength'] as int?,
format: map['format'] != null
? StringFormat.to(map['format'] as String)
: null,
defaultValue: map['default'] as String?,
title: map['title'] as String?,
description: map['description'] as String?,
);
}