SessionConfigOptionCategoryModel.fromJson constructor

SessionConfigOptionCategoryModel.fromJson(
  1. Object? value
)

Implementation

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