toJson method

Map<String, dynamic> toJson()

Serializes one change for an artifact.

Values are preserved in runner artifacts to support debugging.

Implementation

Map<String, dynamic> toJson() => {
      'key': key,
      'change': change,
      if (before != null) 'before': before,
      if (after != null) 'after': after,
    };