toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final scriptType = this.scriptType;
  final source = this.source;
  return {
    if (scriptType != null) 'scriptType': scriptType.toValue(),
    if (source != null) 'source': source,
  };
}