toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (scriptSourceUrl != null) 'scriptSourceUrl': scriptSourceUrl,
    if (operationName != null) 'operationName': operationName,
    if (serializedData != null) 'serializedData': serializedData,
    if (urlsWithMetadata != null)
      'urlsWithMetadata': urlsWithMetadata!.map((e) => e.toJson()).toList(),
    if (key != null) 'key': key,
    if (value != null) 'value': value,
    if (ignoreIfPresent != null) 'ignoreIfPresent': ignoreIfPresent,
  };
}