dateTimeToJson static method

String? dateTimeToJson(
  1. DateTime? date
)

Implementation

static String? dateTimeToJson(DateTime? date) => date?.toIso8601String();