@override Object toJson() => { if (name.isNotDefault) 'name': name, 'key': key, 'schemaDetails': ?schemaDetails?.toJson(), };