ElicitationSchemaTypeObject.fromJson constructor

ElicitationSchemaTypeObject.fromJson(
  1. Object? value
)

Implementation

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