toJsonLd method

  1. @override
Map<String, dynamic> toJsonLd()
override

Serialize SchemaMathSolver to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'MathSolver',
      'mathExpression': convertToJsonLd(
          mathExpression, (v) => v is SchemaSolveMathAction || v is String),
    });