getJsonFilename function

String getJsonFilename(
  1. String documentId,
  2. String extension
)

Implementation

String getJsonFilename(String documentId, String extension) {
  DateTime now = DateTime.now();
  String formattedDate = DateFormat('EEE d MMM y kk:mm:ss').format(now);
  return '$documentId $formattedDate.$extension.json';
}