VersionInfo.fromMap constructor

VersionInfo.fromMap(
  1. Map<Object?, Object?>? versionInfoMap
)

Factory method to construct VersionInfo from dictionary

Implementation

factory VersionInfo.fromMap(Map<Object?, Object?>? versionInfoMap) {
  return VersionInfo (
    buildVersion: (versionInfoMap != null && versionInfoMap.containsKey("buildVersion")) ? versionInfoMap["buildVersion"] as String :  "",
    environment: (versionInfoMap != null && versionInfoMap.containsKey("environment")) ? versionInfoMap["environment"] as String :  "",
  );
}