toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (percentComplete != null) 'percentComplete': percentComplete!,
      if (position != null) 'position': position!.toJson(),
      if (remainingTime != null) 'remainingTime': remainingTime!,
    };