Converts this environment configuration to a map.
Map<String, dynamic> toMap() { return { 'file': file, }; }