fromJSON static method

ShareMetadataBehaviour fromJSON(
  1. String data
)

Implementation

static ShareMetadataBehaviour fromJSON(String data) {
	switch (data) {
		case "REQUIRED":
			return ShareMetadataBehaviour.required;
		case "IF_AVAILABLE":
			return ShareMetadataBehaviour.ifAvailable;
		case "NEVER":
			return ShareMetadataBehaviour.never;
		default:
			throw ArgumentError('Invalid ShareMetadataBehaviour entry value $data');
		}
}