parse static method
Implementation
static FieldKey parse(String keyString) {
final openingIndex = keyString.indexOf('(');
final closingIndex = keyString.lastIndexOf(')');
final name =
openingIndex == -1 ? keyString : keyString.substring(0, openingIndex);
final Map<String, dynamic> args = openingIndex == -1
? {}
: json.decode(keyString.substring(openingIndex + 1, closingIndex));
return FieldKey.from(name, args);
}