fromString method

KeyKind? fromString(
  1. String val
)

Implementation

KeyKind? fromString(String val) {
  final override = {
    'content.body': KeyKind.contentBody,
    'content.name': KeyKind.contentName,
    'content.topic': KeyKind.contentTopic,
  }[val];
// ignore: unnecessary_this
  return this.contains(override) ? override : null;
}