StringFormatDate.fromJson constructor

StringFormatDate.fromJson(
  1. Object? value
)

Implementation

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