fromString method

EventFormat? fromString(
  1. String val
)

Implementation

EventFormat? fromString(String val) {
  final override = {
    'client': EventFormat.client,
    'federation': EventFormat.federation,
  }[val];
// ignore: unnecessary_this
  return this.contains(override) ? override : null;
}