toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (debugString != null) 'debugString': debugString!,
      if (errorCode != null) 'errorCode': errorCode!,
      if (maxAge != null) 'maxAge': maxAge!,
      if (statements != null) 'statements': statements!,
    };