StringFormatDateTime.fromJson constructor

StringFormatDateTime.fromJson(
  1. Object? value
)

Implementation

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