toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "name": name,
      "id": id,
      "metadata": metadata,
      "createdAt": createdAt.toString(),
    }.clearNulls();