FieldType.fromJson(Map<String, Object?> json) : placeholder = json['placeholder'] as String, regexp = json['regexp'] as String;