toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'frameId': frameId.toJson(),
    'type': type,
    'name': name,
    'time': time.toJson(),
    if (duration != null) 'duration': duration,
    if (lcpDetails != null) 'lcpDetails': lcpDetails!.toJson(),
    if (layoutShiftDetails != null)
      'layoutShiftDetails': layoutShiftDetails!.toJson(),
  };
}