Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
io.gs2.csharp.cdk / Core / Model / Config.cs
Size: Mime:
using System.Collections.Generic;

namespace Gs2Cdk.Core.Model
{
    public class Config
    {
        string key;
        string value;

        public Config(
            string key,
            string value
        ) {
            this.key = key;
            this.value = value;
        }

        public Dictionary<string, object> Properties() {
            return new Dictionary<string, object>() {
                {"key", key},
                {"value", value},
            };
        }

        public static Config FromProperties(
            Dictionary<string, object> properties
        ) {
            var model = new Config(
                properties["key"] as string,
                properties["value"] as string
            );

            return model;
        }
    }
}