GenericRevisionInfo.fromJson constructor

GenericRevisionInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GenericRevisionInfo.fromJson(Map<String, dynamic> json) {
  return GenericRevisionInfo(
    deploymentGroups: (json['deploymentGroups'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    description: json['description'] as String?,
    firstUsedTime: timeStampFromJson(json['firstUsedTime']),
    lastUsedTime: timeStampFromJson(json['lastUsedTime']),
    registerTime: timeStampFromJson(json['registerTime']),
  );
}