toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final filePath = this.filePath;
  final replacementType = this.replacementType;
  final content = this.content;
  final fileMode = this.fileMode;
  return {
    'filePath': filePath,
    'replacementType': replacementType.toValue(),
    if (content != null) 'content': base64Encode(content),
    if (fileMode != null) 'fileMode': fileMode.toValue(),
  };
}