StringFormatEmail.fromJson constructor

StringFormatEmail.fromJson(
  1. Object? value
)

Implementation

factory StringFormatEmail.fromJson(Object? value) {
  final decoded = StringFormat.fromJson(value);
  if (decoded is! StringFormatEmail) {
    throw const AcpWireDecodeException('Expected StringFormatEmail.');
  }
  return decoded;
}